<!DOCTYPE html>
<html>
<head> 
<meta charset="utf-8"> 
<title>菜鸟教程(runoob.com)</title> 
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
</head>
<body>
	
<h1>我的第一个 Web 页面</h1>
<p id="demo">我的第一个段落。</p>
<script>
    function readTextFile(file) {
    $.ajax({
        url: file,
        dataType: "text",
        success: function(data) {
            var lines = data.split("\n");
            document.getElementById("demo").innerHTML="段落已修111改。";
            for (var i = 0; i < lines.length; i++) {
                console.log(lines[i]);
            }
        }
    });
};

//readTextFile('.json');
readTextFile('../static/docs/gjb7714/.json');
//document.getElementById("demo").innerHTML="段落已222修改。";
</script>
	
</body>
</html>
